package com.zoe.vhr.controller.salary;

import com.zoe.vhr.model.Salary;
import com.zoe.vhr.service.SalaryService;
import com.zoe.vhr.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Zoe.Zhang
 * @Date: 2021/08/15
 * @Description
 */
@RestController
@RequestMapping("/salary/sob/")
public class SalaryController {
    @Autowired
    private SalaryService salaryService;

    @GetMapping("/listAllSalaries")
    public R listAllSalaries() {
        List<Salary> salaries = salaryService.listAllSalaries();
        return R.success(salaries);
    }


}
